{{extend elemLayout}}

{{block 'css'}}

<link rel="stylesheet" type="text/css" href="{{_res_path}}/help/version-info.css"/>
<style>
body {
margin: 0;
padding: 10px 0;
min-height: 100vh;
background-image: url("{{_res_path}}/help/imgs/bg.jpg") !important;
background-size: cover !important;
background-position: center !important;
background-repeat: no-repeat !important;
background-attachment: fixed !important;
}
.hydro-bg {
background: transparent !important;
}
.log-cont {
background-color: #c9ccd64f !important;
margin: 10px auto;
}
</style>
{{/block}}

{{block 'main'}}
{{each changelogs ds idx}}

<div class="hydro-bg log-cont">
{{set v = ds.version }}
{{set isDev = v[v.length-1] === 'v'}}
<div class="cont {{isDev ? 'dev-cont': ''}}">
{{if idx === 0 }}
<div class="cont-title current-version">当前版本 {{v}}</div>
{{else}}
<div class="cont-title">{{name || '历史'}}版本 {{v}}</div>
{{/if}}
<div class="cont-body">
<ul class="log-ul">
{{each ds.logs log}}
<li>
<p>{{@log.title}}</p>
{{if log.logs.length > 0}}
<ul class="sub-log-ul">
{{each log.logs ls}}
<li>{{@ls}}</li>
{{/each}}
</ul>
{{/if}}
</li>
{{/each}}
</ul>
</div>
</div>
</div>
{{/each}}
{{/block}}
